package com.gscitysfy.cus.drain.modules.warning.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainSystemCommandLead;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainWaringSystem;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhangqiang
 * @since 2022-10-23 17:38:32
 */
public interface IDrainSystemCommandLeadService extends IService<DrainSystemCommandLead> {
    Result<Object> getByPage(Page<DrainSystemCommandLead> page, DrainSystemCommandLead drainSystemCommandLead);

    Result<Object> getListByQuery( DrainSystemCommandLead drainSystemCommandLead);
    Result<Boolean> del(DrainSystemCommandLead drainSystemCommandLead);



    /**
     *  新增或者修改预警机制
     * @param drainSystemCommandLead
     * @return
     */
    Result<Boolean> addOrUpdate(DrainSystemCommandLead drainSystemCommandLead);
}
